﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/functon.master" AutoEventWireup="true" CodeFile="Customers.aspx.cs" Inherits="Customers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   <link rel="stylesheet" href="css/admir.css" />
     <link rel="stylesheet" href="css/astyle.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div class="admir_l">
        <br />
        <a href="Add_RoomCategory.aspx">增加房间信息</a><br />
        <a href="Search_RoomCatagory.aspx">查看房间信息</a><br />
        <a href="Update_RoomCategory.aspx">更改房间信息</a><br />
        <a href="Delete_RoomCategory.aspx">删除房间信息</a><br />
        <a href="Customers.aspx">查看客户信息</a><br />
        <a href="RoomCustomer.aspx">查看已住客房信息</a><br />
        <a href="RoomStatus.aspx">查看房间状态 </a>
    </div>
    <div class="admir_r">
         <table align="center">
        <tr align="center">
            <td align="right">请输入编号：
                <asp:TextBox ID="TextBox1" runat="server" Height="30px" Width="120px" BackColor="#ff9966"></asp:TextBox>
            </td>
            <td align="left">
                <asp:Button ID="DisplayOne" runat="server" Text="显示" Height="30px" Width="120px" BackColor="#ff9966" OnClick="DisplayOne_Click" />
            </td>
            <td align="center">
                <asp:Button ID="DisplayAll" runat="server" Text="显示全部" Height="30px" Width="120px" BackColor="#ff9966" OnClick="DisplayAll_Click" />
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" PageSize="5"
                     AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" OnDataBound="GridView1_DataBound" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
                    <AlternatingRowStyle BackColor="#DCDCDC" />
                    <Columns>
                        <asp:BoundField DataField="id" HeaderText="客户账号" />
                        <asp:BoundField DataField="name" HeaderText="姓名" />
                        <asp:BoundField DataField="sex" HeaderText="性别" />
                        <asp:BoundField DataField="idcard" HeaderText="身份证号" />
                        <asp:BoundField DataField="usr_pad" HeaderText="账户密码" />
                        <asp:BoundField DataField="usr_phone" HeaderText="电话" />
                        <asp:BoundField DataField="usr_email" HeaderText="邮箱" />
                        <asp:BoundField DataField="amount" HeaderText="账户余额" />
                    </Columns>
                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#0000A9" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#000065" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="color:fuchsia">每页显示：
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                </asp:DropDownList>
                <asp:Label ID="Label1" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    </div>
       
</asp:Content>

